package cn.itcast.cd.domain;

import java.util.HashSet;
import java.util.Set;

public class Role {

	private Long id;
	private String name;
	private Set<Permission> permissions = new HashSet<Permission>();
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Set<Permission> getPermissions() {
		return permissions;
	}
	public void setPermissions(Set<Permission> permissions) {
		this.permissions = permissions;
	}
	@Override
	public String toString() {
		return "Role [id=" + id + ", name=" + name + ", permissions="
				+ permissions + "]";
	}
	
	
}
